/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication1;

import java.util.*;

/**
 *
 * @author jonathan
 */
public class Neuron {
//    int numInputs; //can probably just use inputs.length or something...
    
    //weights for each input
    List<Double> weights = new ArrayList<Double>();
    
    
    
    Neuron(int nputs) {
        
        //nputs  +1 for bias
        for(int i=0; i<nputs+1; i++){
            
            //initialize with random weights [-1 to 1] (rand does 0 to 1)
            if(Config.r.nextBoolean()){
                weights.add(Config.r.nextDouble());
            }else{
                weights.add(-Config.r.nextDouble());
            }
        }
    }
}
